package com.qfmy.common.result;

import lombok.Getter;

/**
 * @author 清风明月
 * @Package com.lzw.breezeNovel.common.result
 * @date 2025/4/13
 * @description  枚举类
 * */
@Getter
@SuppressWarnings("ALL")
public enum ResultCodeEnum {

    SUCCESS(200, "成功"),
    FAIL(201, "失败"),
    SERVICE_ERROR(203, "服务异常"),


    ADMIN_ACCOUNT_EXIST_ERROR(301, "账号已存在"),
    ADMIN_LOGIN_PASSWORD_NOT_TRUE(302, "密码不正确"),
    ADMIN_ACCOUNT_DISABLED_ERROR(303, "该用户已被禁用"),
    ADIMN_IS_REGISTERED(304, "该手机号已注册"),
    ADMIN_LOGIN_AUTH(305, "未登陆"),
    ADMIN_ACCOUNT_NOT_EXIST_ERROR(306, "账号不存在"),
    ADMIN_ACCOUNT_ERROR(307, "用户名或密码错误"),
    ADMIN_ACCESS_FORBIDDEN(309, "无访问权限"),



    APP_LOGIN_AUTH(501, "未登陆"),
    APP_LOGIN_PHONE_EMPTY(502, "手机号码为空"),
    APP_LOGIN_CODE_EMPTY(503, "验证码为空"),
    APP_SEND_SMS_TOO_OFTEN(504, "验证法发送过于频繁"),
    APP_LOGIN_CODE_EXPIRED(505, "验证码已过期"),
    APP_LOGIN_CODE_ERROR(506, "验证码错误"),
    APP_ACCOUNT_DISABLED_ERROR(507, "该用户已被禁用"),
    APP_LOGIN_IS_NOT_REGISTERED(508, "该手机号未注册"),
    APP_LOGIN_PASSWORD_NOT_TRUE(509, "密码不正确"),
    APP_LOGIN_IS_REGISTERED(510, "该手机号已注册"),
    ACCOUNT_LOCKED(511, "账号被锁定"),
    REPEAT_SCORE(512, "重复评分"),
    APP_COMIC_COLLECTION_EXIST(513,"该作品已被收藏,请勿重复收藏" ),
    APP_COMIC_CANNER_EXIST(514,"该作品已被取消收藏,请勿重复操作"),
    COMIC_RATING_OVER(515,"你已经评分过了"),
    COMIC_NOT_EXIST(516,"作品不存在" ),
    APP_LOGIN_IMAGE_CODE_ERROR(517,"图形验证码错误" ),
    APP_PASSWORD_COMPLEXITY_ERROR(518,"密码复杂度不够" ),


    TOKEN_EXPIRED(601, "token过期"),
    TOKEN_INVALID(602, "token非法");


    private final Integer code;

    private final String message;

    ResultCodeEnum(Integer code, String message) {
        this.code = code;
        this.message = message;
    }
}
